package com.dc.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("dc_dictionary")
@ApiModel
public class Dictionary implements Serializable {

    private static final long serialVersionUID = 9154586193348804892L;
    @TableId(type = IdType.INPUT)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    private String type;
    @TableField("`value`")
    private String value;
    private Integer isDelete;
    private String createTime;
    private String updateTime;
    @TableField("`desc`")
    private String desc;

    @ApiModelProperty(value = "0:正常 1：异常")
    @TableField(exist = false)
    private int status;

}
